<div style="margin-top:100px;"></div>
<div class="container">
    <div class="content">
        <h1>{{title}}</h1>
    </div>

    <div class="contents" id="content"> </div>
    <div class="content">
        <table>
            <tr>
                <td>作品参与人员：</td>
                <td *ngFor="let item of partakeAdd">{{item}}</td>
            </tr>
            <tr>
                <td>仓库地址：</td>
                <td> <a [href]="code" target="_blank">{{title}}</a></td>
            </tr>
        </table>
    </div>
    <div class="date">作品发布于：{{date}}</div>

    <div class="discuss">
        <textarea nz-input placeholder="评论" [(ngModel)]="commentDate.content" [nzAutosize]="{ minRows: 2, maxRows: 2 }"></textarea>
        <button nz-button nzType="primary" (click)="sendDiscuss('error')">发表评论</button>
    </div>

    <div *ngFor="let item of partCommit">
        <p style="font-size: 16px;">{{item.content}}</p>
        <nz-divider [nzText]="item.date" nzOrientation="right" style="color: #999;font-size: 14px;"></nz-divider>
    </div>
    <nz-empty *ngIf="commit.length === 0"></nz-empty>
    <nz-pagination [nzTotal]="commit.length" nzShowQuickJumper nzPageSizeOptions=10 nzHideOnSinglePage=true nzPageSize=10 [nzPageIndex]="1" style="text-align: center;" (nzPageIndexChange)="PageIndexChange($event)"></nz-pagination>
</div>